import React from "react";
import { useRoutes } from "react-router-dom";
import routes from "./router";

const App = () => {
  const element = useRoutes(routes);
  return (
    <>
      <h2>v6-路由表</h2>
      {element}
    </>
  );
};

export default App;
